package com.zhuiyun.pm.client.surety.service.impl;

import com.zhuiyun.pm.client.surety.mapper.SuretyMapper;
import com.zhuiyun.pm.client.surety.pojo.Surety;
import com.zhuiyun.pm.client.surety.service.SuretyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author dongdong
 * @Date 2023/3/19 12:49
 **/
@Service
public class SuretyServiceImpl implements SuretyService {
    @Autowired
    SuretyMapper suretyMapper;
    @Override
    public void depositSurety(Integer userId, Integer goodsId, Integer addressId) {

        Surety surety = new Surety();
        surety.setUserId(userId);
        surety.setGoodsId(goodsId);
        surety.setAddressId(addressId);
        suretyMapper.insertSelective(surety);

    }
}
